package net.maku.im.convert;

import net.maku.im.entity.ImPrivateMessageEntity;
import net.maku.im.vo.ImPrivateMessageVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 私聊消息
*
* @author Blue 
* @since 1.0.0 2024-07-19
*/
@Mapper
public interface ImPrivateMessageConvert {
    ImPrivateMessageConvert INSTANCE = Mappers.getMapper(ImPrivateMessageConvert.class);

    ImPrivateMessageEntity convert(ImPrivateMessageVO vo);

    ImPrivateMessageVO convert(ImPrivateMessageEntity entity);

    List<ImPrivateMessageVO> convertList(List<ImPrivateMessageEntity> list);

}